package com.gitee.ice1938.mvc.base;

import java.io.Serializable;

public class LableValue implements Serializable {
	/**
	 * serialVersionUID
	 */
	private static final long serialVersionUID = 8807618690101548873L;

	public LableValue(String lable, String value) {

		this.lable = lable;
		this.value = value;
	}

	private String lable;

	private String value;

	public LableValue() {
	}

	public String getValue() {
		return value;
	}

	public String getLable() {
		return lable;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public void setLable(String lable) {
		this.lable = lable;
	}

	@Override
	public String toString() {
		return "LableValue [lable=" + lable + ", value=" + value + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((lable == null) ? 0 : lable.hashCode());
		result = prime * result + ((value == null) ? 0 : value.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		LableValue other = (LableValue) obj;
		if (lable == null) {
			if (other.lable != null)
				return false;
		} else if (!lable.equals(other.lable))
			return false;
		if (value == null) {
			if (other.value != null)
				return false;
		} else if (!value.equals(other.value))
			return false;
		return true;
	}
}
